﻿using System;
using System.Collections.Generic;

namespace RealtReview.DataAccess.Interfaces
{
    public interface IRepository<T>
    {
        T InsertOrUpdate(T entity);

        void Delete(T entity);

        T Get(Guid id);

        IEnumerable<T> Get(Func<T, bool> predicate);

        void SaveChanges();
    }
}
